"use strict";
const common_vendor = require("../../../../../../common/vendor.js");
const common_assets = require("../../../../../../common/assets.js");
if (!Array) {
  const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
  const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
  (_easycom_up_text2 + _easycom_up_button2)();
}
const _easycom_up_text = () => "../../../../../../node-modules/uview-plus/components/u-text/u-text.js";
const _easycom_up_button = () => "../../../../../../node-modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
  (_easycom_up_text + BMIChart + BMIChart2 + _easycom_up_button)();
}
const BMIChart = () => "./BMIChart/index.js";
const BMIChart2 = () => "./BMIChart2/index.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  setup(__props) {
    const user = common_vendor.ref({
      name: "熊翱",
      bmiTime: "2024/05/30",
      bmi: 20.2,
      height: 170,
      weight: 57.9,
      bodyConditionLevel: "正常",
      diseaseRiskLevel: "正常"
    });
    const bmiRecords = common_vendor.ref([{
      time: "2024-05-30",
      bmi: 20.2,
      weight: 57.9
    }, {
      time: "2024-05-30",
      bmi: 20.2,
      weight: 57.9
    }]);
    return (_ctx, _cache) => {
      return {
        a: common_assets._imports_0,
        b: common_vendor.p({
          mode: "name",
          text: user.value.name,
          bold: "true",
          format: "encrypt"
        }),
        c: common_vendor.p({
          text: "当前体重指数"
        }),
        d: common_vendor.p({
          type: "info",
          text: user.value.bmiTime,
          align: "right"
        }),
        e: common_vendor.p({
          text: user.value.bmi,
          bold: "true"
        }),
        f: common_vendor.p({
          type: "info",
          text: "身高",
          align: "center"
        }),
        g: common_vendor.p({
          type: "info",
          text: `${user.value.height}cm`,
          align: "center"
        }),
        h: common_vendor.p({
          type: "info",
          text: "体重",
          align: "center"
        }),
        i: common_vendor.p({
          type: "info",
          text: `${user.value.weight}kg`,
          align: "center"
        }),
        j: common_vendor.p({
          text: "体重指数记录"
        }),
        k: common_vendor.f(bmiRecords.value, (bmiRecord, index, i0) => {
          return {
            a: "2386411b-11-" + i0,
            b: common_vendor.p({
              text: bmiRecord.time
            }),
            c: "2386411b-12-" + i0,
            d: common_vendor.p({
              type: "info",
              text: `BMI ${bmiRecord.bmi}，体重 ${bmiRecord.weight}   >`,
              align: "right"
            }),
            e: index
          };
        }),
        l: common_vendor.p({
          type: "primary",
          text: "增加记录"
        })
      };
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2386411b"]]);
wx.createPage(MiniProgramPage);
